x86: fix assertion in get_page_type()
authorJan Beulich <jbeulich@suse.com>
Mon, 7 Jan 2013 13:20:26 +0000 (14:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Jan 2013 13:20:26 +0000 (14:20 +0100)
commit8bb51a72e2782395bdca456c54e3b0c64f74714c
treedde806f8145a30ca15d5a027bc8415b6eb621d93
parent1e86302d8c2ea279fee66ee7c2368258426ef876
x86: fix assertion in get_page_type()

c/s 22998:e9fab50d7b61 (and immediately following ones) made it
possible that __get_page_type() returns other than -EINVAL, in
particular -EBUSY. Consequently, the assertion in get_page_type()
should check for only the return values we absolutely don't expect to
see there.

This is XSA-37 / CVE-2013-0154.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c